package com.gof.example.algorithm;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/13 15:46.
 * haiming.fei@tongdun.cn
 */
public class Airport {

    private AirplaneBehaviour airplaneBehaviour;

    public void setAirplaneBehaviour(AirplaneBehaviour airplaneBehaviour) {
        this.airplaneBehaviour = airplaneBehaviour;
    }

    public void behaviour() {
        System.out.println(airplaneBehaviour.getName() + ":");
        airplaneBehaviour.howTakeoff();
        airplaneBehaviour.howFly();
    }
}
